package com.imti.mall.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imti.mall.model.oms.pojo.OmsOrderReturnReason;
import com.imti.mall.model.oms.query.OmsOrderListParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderReturnReasonMapper extends BaseMapper<OmsOrderReturnReason> {

   List<OmsOrderReturnReason> fetchReturnReasonList(OmsOrderListParam listParam);

   Integer deleteReturnReason(Integer[] ids);


   Integer updateReasonStatus(@Param("params") Map<String,Object> map);

   Integer addReturnReason(OmsOrderReturnReason returnReason);

   OmsOrderReturnReason getReasonDetail(Integer id);

   Integer updateReturnReason(OmsOrderReturnReason returnReason);
}
